package models

type CreateUploadTaskReq struct {
	FileName string `json:"file_name"`
	Hash     string `json:"hash" `
	FileSize int    `json:"file_size"`
}

type CreateUploadTaskResp struct {
	FileID int64 `json:"file_id"`
}

type StopUploadTaskReq struct {
	FileID int64 `json:"file_id"`
}

type StopUploadTaskResp struct {
	FileID int64 `json:"file_id"`
}

type SendUploadPackageReq struct {
	FileID int64  `json:"file_id"`
	Offset int    `json:"offset"`
	Limit  int    `json:"limit"`
	Body   []byte `json:"body"`
}

type SendUploadPackageResp struct {
	Crc int `json:"crc"`
}

type ContinueUploadPackageReq = struct {
	FileID int64 `json:"file_id"`
}

type ContinueUploadPackageResp struct {
	DeleteTime int64 `json:"delete_time"`
}

type PauseUploadPackageReq struct {
	FileID int64 `json:"file_id"`
}

type PauseUploadPackageResp struct {
}

type DoneUploadPackageReq struct {
	FileID int64 `json:"file_id"`
}

type DoneUploadPackageResp struct {
	FileUUID string `json:"file_uuid"`
}
